import Vue from 'vue';
import Vuex from 'vuex';
// import createLogger from 'vuex/dist/logger';
// 引入模块
import user from './modules/user';
import category from './modules/category';
import live from './modules/live';
import prod from './modules/prod';
import home from './modules/home'
import prodShow from './modules/prodShow'
import address from "./modules/deliveryAddress";
import newAddress from "./modules/newAddress";
import basket from "./modules/basket";
import recentNews from "./modules/recentNews"
import submitOrder from "./modules/submitOrder"
Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    user,
    live,
    home,
    prod,
    category,
    prodShow,
    address,
    newAddress,
    basket,
    recentNews,
    submitOrder
  },
  // plugins: [createLogger()]
})